﻿using System;
using System.Web.UI.WebControls;
using kunukn.RecommendationEngine.AreaRecommendation.Code.Helpers;

namespace kunukn.RecommendationEngine.AreaRecommendation.Controls
{
    public partial class DebugView : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string s = SessionHelper.GetDebugData();
            if (!string.IsNullOrEmpty(s))
                PanelContent.Controls.Add(new Literal { Text = s });
            else
                div.Visible = false;
        }
    }
}